﻿<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="text" />
	<xsl:template match="/">
using System;
		
namespace <xsl:value-of select="Schema/@DataEntityNameSpace" />
{
	public class <xsl:value-of select="Schema/@TableName" /> 
	{
		<xsl:for-each select="Schema/Columns">
		private <xsl:value-of select="concat(LanguageType,' _',ColumnName)" />;
		<xsl:if test="/Schema/@WcfDataContract='True'">
		</xsl:if>
		/// &lt;summary/&gt;
		///<xsl:value-of select="Desc" />
		///&lt;/summary/&gt;
		public virtual <xsl:value-of select="concat(LanguageType,' ',ColumnName)" />
		{
			get
			{
				return this._<xsl:value-of select="ColumnName" />;
			}
				set
			{
				this._<xsl:value-of select="ColumnName" /> = value;
			}
		}
</xsl:for-each>	
	}
}
	</xsl:template>
</xsl:stylesheet>